{$CLEO .cs}
thread "Sticky_Camera"

:Sticky_Camera_1
wait 0 
if and
   Player.Defined($PLAYER_CHAR)
   Actor.Driving($PLAYER_ACTOR)
   not Actor.DrivingPlane($PLAYER_ACTOR)
else_jump @Sticky_Camera_1
0@ = Actor.CurrentCar($PLAYER_ACTOR)
if 
0AB0:   key_pressed 219
else_jump @Sticky_Camera_1

:Sticky_Camera_2
wait 0
if
Actor.Driving($PLAYER_ACTOR)
else_jump @Sticky_Camera_0 
wait 0 
   Player.Defined($PLAYER_CHAR)
else_jump @Sticky_Camera_0
0679: put_camera_on_car 0@ with_offset 0.0 -5.0 1.8 rotation 0.0 0.0 0.0 tilt 0.0 switchstyle 2
jump @Sticky_Camera_5

:Sticky_Camera_5
if
0AB0:  key_pressed 221
else_jump @Sticky_Camera_2

:Sticky_Camera_0
Camera.Restore_WithJumpCut
jump @Sticky_Camera_1 
